package com.bitnpulse.dev2.jjh.engstudybook_free.dialog;

import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.bitnpulse.dev2.jjh.engstudybook_free.R;

public class ReadSpeedMesureResultDialog extends CustomDialog implements android.view.View.OnClickListener{

	TextView mTxtReadSpeedResult;
	Button mBtnReadSpeedResultOk;
	
	public ReadSpeedMesureResultDialog(Context context) {
		super(context);
		setContentView(R.layout.dialog_read_speed_mesure_result);
		
		mTxtReadSpeedResult = (TextView)findViewById(R.id.txtReadSpeedResult);
		mBtnReadSpeedResultOk = (Button)findViewById(R.id.btnReadSpeedResultOk);
		mBtnReadSpeedResultOk.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		dismiss();
	}
	
	public void show(String title, String message){
		this.setTitle(title);
		mTxtReadSpeedResult.setText(message);
		show();
	}
}
